package com.myjar.excel.serializer;

import org.apache.poi.ss.usermodel.Cell;

public class LongCodec implements ObjectSerializer<Long> {

    static final LongCodec instance = new LongCodec();

    @Override
    public void write(Cell cell, Long aLong) {
        cell.setCellValue(aLong);
    }

    @Override
    public Long read(Cell cell) {
        return Long.parseLong(cell.getNumericCellValue() + "");
    }
}
